Printing pattern in c#

60

Printing pattern in c# -

using System.IO;
using System;
class Program {
   static void Main() {
      for (int i = 1; i <= 6; ++i) {
         for (int j = 1; j <= i; ++j) {
            Console.Write("*");
         }
         Console.WriteLine();
      }
   }
}

Comments

Submit
0 Comments